/*
* @Author: steven.wang
* @Date:   2019-03-01 13:58:12
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-13 14:40:25
*/
import request from '@/utils/request'
/**
 * 查询图片列表
 * @author steven.wang
 * @DateTime 2019-03-04T13:46:43+0800
 */
export const fetchList = query => {
    return request({
        url: '/crawler/photo/list',
        method: 'get',
        params: query
    })
}
/**
 * 添加图片
 * @author steven.wang
 * @DateTime 2019-03-04T13:48:52+0800
 */
export const addPhoto = data => {
    return request({
        url: '/crawler/photo/add',
        method: 'post',
        data
    })
}
/**
 * 更新图片
 * @author steven.wang
 * @DateTime 2019-03-04T13:48:58+0800
 */
export const updatePhoto = data => {
    return request({
        url: '/crawler/photo/update',
        method: 'put',
        data
    })
}
/**
 * 删除图片
 * @author steven.wang
 * @DateTime 2019-03-04T13:48:58+0800
 */
export const deletePhoto = data => {
    return request({
        url: '/crawler/photo/delete',
        method: 'delete',
        data
    })
}